package com.sky.controller;

import com.sky.config.DeepSeek;
import com.sky.config.DeepSeek_stream;
import com.sky.config.DeepSeek_stream2;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

public class TextController {
    public static void main(String[] args) throws IOException {
        DeepSeek deepSeek=new DeepSeek();
        String re =deepSeek.answer("1+5等于多少",false);
        System.out.print(re);
//        DeepSeek_stream deepSeekStream=new DeepSeek_stream();
//        deepSeekStream.answer("解释火星", new DeepSeek_stream.ResponseCallback() {
//            @Override
//            public void onDataReceived(String chunk) {
//                System.out.print(chunk);
//            }
//        });
//        DeepSeek_stream2 deepSeek_stream2=new DeepSeek_stream2();
//        String answer = deepSeek_stream2.answer("解释火星");
//        System.out.println(answer);

    }
}






